<!DOCTYPE html>
<html lang="zh-CN"  xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorator="common/layout">
<head>
    <title>我的公司</title>
</head>
<body>
<section layout:fragment="top_menu" style="text-align: right;padding-right: 20px">
    <div>
        <input type="button" class="new_button_yellow input_add" onclick="javascript:edit_cancel()" value="修改">
    </div>
</section>

<section layout:fragment="content">
    <div class="mystore" style="margin: 5px" th:object="${company}">
            <table>
                <tbody>
                <tr>
                    <td style="text-align: right">
                        公司名
                    </td>
                    <td th:text="*{name}">
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">
                        appid
                    </td>
                    <td th:text="*{appid}"></td>
                </tr>
                <tr>
                    <td style="text-align: right">
                        appsecret
                    </td>
                    <td th:text="*{appsecret}"></td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>
</section>


<section layout:fragment="extra_scripts">

    <script th:inline="javascript">
        function edit_cancel() {
            var url = "/admin/company/"+[[${company.id}]];
            self.location.href = url;
        };
    </script>
</section>

</body>

</html>
